package br.usp.icmc.biomac.client.view.lixo;


import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlexTable;
import com.google.gwt.user.client.ui.Widget;

public class LexiconsTab extends Composite {

	private static LexiconsTabUiBinder uiBinder = GWT
			.create(LexiconsTabUiBinder.class);
	@UiField
	FlexTable header;
	@UiField
	FlexTable table;
	@UiField LexiconsTreeTab LexiconsTreeTab;
	@UiField FlexTable table2;
	
	interface LexiconsTabUiBinder extends UiBinder<Widget, LexiconsTab> {
	}

	public LexiconsTab() {
		initWidget(uiBinder.createAndBindUi(this));
		initTable();
	}

	/**
	 * ROIS. 
	 */
	private void initTable() {
		/*// Initialize the header.
		header.getColumnFormatter().setWidth(0, "25px");*/

		header.setText(0, 0, "Lexicon");
		//header.getCellFormatter().setHorizontalAlignment(0, 3,HasHorizontalAlignment.ALIGN_RIGHT);

		/*// Initialize the table.
		table.getColumnFormatter().setWidth(0, "25px");*/
		for (int i=0; i<40; i++){
			for (int y=0; y<1; y++){
				table.setText(i, y, "Text " + Integer.toString(i));
				table2.setText(i, y, "Text " + Integer.toString(i));
			}
		}
	}

}
